#ifndef PAGESERIALPORTPAREMETERS_H
#define PAGESERIALPORTPAREMETERS_H

#include <QWidget>
#include "CommonTypes.h"

namespace Ui {
class PageSerialPortParemeters;
}

class PageSerialPortParemeters : public QWidget
{
    Q_OBJECT

public:
    explicit PageSerialPortParemeters(QWidget *parent = nullptr);
    ~PageSerialPortParemeters();

private:
    void InitLayout();
    void ConnectSignalSlot();

    void InitSerialPortCOM(void);
    void InitSerialPortBadurate(void);
    void InitSerialPortDataBits(void);
    void InitSerialPortParity(void);
    void InitSerialPortStopBits(void);
    void InitSerialPortFlowControl(void);

public slots:
    void slotOpenSerialPort(bool, QString);


private:
    Ui::PageSerialPortParemeters *ui;
    SerialPortSettings *mSerialPortSettings = nullptr;

signals:
    void signalConnectSerialPort(SerialPortSettings *);

};

#endif // PAGESERIALPORTPAREMETERS_H
